/**
 * Copyright &copy; 2020 <a href="https://github.com/somowhere/exam-system">exam-system</a> All rights reserved.
 */
package com.shanhesoft.java.modules.exam.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.shanhesoft.java.common.core.vo.PageModel;
import com.shanhesoft.java.common.persistence.service.DataService;
import com.shanhesoft.java.modules.exam.domain.Answer;
import com.shanhesoft.java.modules.exam.domain.dto.AnswerDto;
import com.shanhesoft.java.modules.exam.domain.dto.AnswerQueryCriteria;

/**
 * 答题信息Service 答题信息
 * @author admin
 * @version 2020-10-12 23:59:25
 */
public interface AnswerService extends DataService<Answer, AnswerDto, String>{
	public void saveOrUpdate(AnswerDto answerDto, boolean submitType);
	public IPage<Answer> findPage(PageModel pm, AnswerQueryCriteria answerQueryCriteria);
	public AnswerDto convertAnswerEntity(Answer answer);
	public AnswerDto getAnswerByRecordId(String id);
	public Integer markAnswer(AnswerDto answerDto);
	public Integer completeMarking(AnswerDto answerDto);
}
